macos: use video mode for refresh rate and interval
authorChristian Hergert <christian@hergert.me>
Mon, 28 Feb 2022 07:17:40 +0000 (23:17 -0800)
committerChristian Hergert <christian@hergert.me>
Mon, 28 Feb 2022 19:36:27 +0000 (11:36 -0800)
commitdac0b7d609740f0f330c59bd9696c55302ec434f
tree843c2e507ec3a39fc36f15b2e99bd8a8b144b7ba
parentd14987e8195f8b588648ba95791797e84663b408
macos: use video mode for refresh rate and interval

Using the mode allows better detection of refresh rate and refresh
interval for the CVDisplayLink bridge to GdkFrameClock. Using it can help
ensure that our 144hz displays can actually reach that rather than falling
back to just 60hz.

This will also need future commits to rework the displaylink source to be
per-monitor.
gdk/macos/gdkdisplaylinksource.c
gdk/macos/gdkdisplaylinksource.h